<!doctype html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Task Tracker System</title>
        <link rel="shortcut icon" href="{{ url('public/favicon.png')}}">
        <!-- start: Mobile Specific -->
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <!-- end: Mobile Specific -->
        <!-- start: CSS -->
        @section('head')
        <!-- Bootstrap Core CSS -->
        {{ HTML::style('public/sbadmin/css/bootstrap.min.css')}}
        <!-- MetisMenu CSS -->
        {{ HTML::style('public/sbadmin/css/plugins/metisMenu/metisMenu.min.css')}}
        <!-- Custom CSS -->
        {{ HTML::style('public/sbadmin/css/sb-admin-2.css')}}
        <!-- Custom Fonts -->
        {{ HTML::style('public/sbadmin/font-awesome-4.2.0/css/font-awesome.min.css')}}
         <!-- SelfStyle CSS -->
        {{ HTML::style('public/css/sbstyle.css')}}
        <!-- DataTables CSS -->
        {{ HTML::style('public/sbadmin/css/plugins/dataTables.bootstrap.css')}}
        <!-- DatePicker CSS -->
        {{ HTML::style('public/css/datepicker.css')}}
        <!-- end: CSS -->

        <!-- start: JavaScript -->
        <!-- jQuery -->
        {{ HTML::script('public/sbadmin/js/jquery.js')}}
        <!-- Bootstrap Core JavaScript -->
        {{ HTML::script('public/sbadmin/js/bootstrap.min.js')}}
        <!-- Bootstrap datepicker -->
        {{ HTML::script('public/script/bootstrap-datepicker.js')}}
        <!-- Metis Menu Plugin JavaScript -->
        {{ HTML::script('public/sbadmin/js/plugins/metisMenu/metisMenu.min.js')}}
        <!-- Custom Theme JavaScript -->
        {{ HTML::script('public/sbadmin/js/sb-admin-2.js')}}
        <!-- DataTables JavaScript -->
        {{ HTML::script('public/sbadmin/js/plugins/dataTables/jquery.dataTables.js')}}
        {{ HTML::script('public/sbadmin/js/plugins/dataTables/dataTables.bootstrap.js')}}
        <!-- end: JavaScript -->

        <!-- AMN Library -->
        {{ HTML::script('public/amn/amn.js/azTable.js')}}
        {{ HTML::script('public/amn/amn.js/gui-function.js')}}
        <!-- end: JavaScript -->


        @show
        
    </head>
    <body >
        <div class="body"></div>
        <div id="wrapper">

            <!-- Navigation -->
            <nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href="home">Task Tracker System</a>
                </div>
                <!-- /.navbar-header -->

                <ul class="nav navbar-top-links navbar-right">
                   <!-- <li class="dropdown">
                        <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                            <i class="fa fa-envelope fa-fw"></i>  <i class="fa fa-caret-down"></i>
                        </a>
                        <ul class="dropdown-menu dropdown-messages">
                            <li>
                                <a href="#">
                                    <div>
                                        <strong>John Smith</strong>
                                        <span class="pull-right text-muted">
                                            <em>Yesterday</em>
                                        </span>
                                    </div>
                                    <div>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque eleifend...</div>
                                </a>
                            </li>
                            <li class="divider"></li>
                            <li>
                                <a href="#">
                                    <div>
                                        <strong>John Smith</strong>
                                        <span class="pull-right text-muted">
                                            <em>Yesterday</em>
                                        </span>
                                    </div>
                                    <div>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque eleifend...</div>
                                </a>
                            </li>
                            <li class="divider"></li>
                            <li>
                                <a href="#">
                                    <div>
                                        <strong>John Smith</strong>
                                        <span class="pull-right text-muted">
                                            <em>Yesterday</em>
                                        </span>
                                    </div>
                                    <div>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque eleifend...</div>
                                </a>
                            </li>
                            <li class="divider"></li>
                            <li>
                                <a class="text-center" href="#">
                                    <strong>Read All Messages</strong>
                                    <i class="fa fa-angle-right"></i>
                                </a>
                            </li>
                        </ul>
                        <!-- /.dropdown-messages -->
                    <!-- </li>
                    <!-- /.dropdown -->
                   <!--  <li class="dropdown">
                        <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                            <i class="fa fa-tasks fa-fw"></i>  <i class="fa fa-caret-down"></i>
                        </a>
                        <ul class="dropdown-menu dropdown-tasks">
                            <li>
                                <a href="#">
                                    <div>
                                        <p>
                                            <strong>Task 1</strong>
                                            <span class="pull-right text-muted">40% Complete</span>
                                        </p>
                                        <div class="progress progress-striped active">
                                            <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 40%">
                                                <span class="sr-only">40% Complete (success)</span>
                                            </div>
                                        </div>
                                    </div>
                                </a>
                            </li>
                            <li class="divider"></li>
                            <li>
                                <a href="#">
                                    <div>
                                        <p>
                                            <strong>Task 2</strong>
                                            <span class="pull-right text-muted">20% Complete</span>
                                        </p>
                                        <div class="progress progress-striped active">
                                            <div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100" style="width: 20%">
                                                <span class="sr-only">20% Complete</span>
                                            </div>
                                        </div>
                                    </div>
                                </a>
                            </li>
                            <li class="divider"></li>
                            <li>
                                <a href="#">
                                    <div>
                                        <p>
                                            <strong>Task 3</strong>
                                            <span class="pull-right text-muted">60% Complete</span>
                                        </p>
                                        <div class="progress progress-striped active">
                                            <div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%">
                                                <span class="sr-only">60% Complete (warning)</span>
                                            </div>
                                        </div>
                                    </div>
                                </a>
                            </li>
                            <li class="divider"></li>
                            <li>
                                <a href="#">
                                    <div>
                                        <p>
                                            <strong>Task 4</strong>
                                            <span class="pull-right text-muted">80% Complete</span>
                                        </p>
                                        <div class="progress progress-striped active">
                                            <div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="80" aria-valuemin="0" aria-valuemax="100" style="width: 80%">
                                                <span class="sr-only">80% Complete (danger)</span>
                                            </div>
                                        </div>
                                    </div>
                                </a>
                            </li>
                            <li class="divider"></li>
                            <li>
                                <a class="text-center" href="#">
                                    <strong>See All Tasks</strong>
                                    <i class="fa fa-angle-right"></i>
                                </a>
                            </li>
                        </ul>
                        <!-- /.dropdown-tasks -->
      <!--               </li>
                    <!-- /.dropdown -->
                   <!--  <li class="dropdown">
                        <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                            <i class="fa fa-bell fa-fw"></i>  <i class="fa fa-caret-down"></i>
                        </a>
                        <ul class="dropdown-menu dropdown-alerts">
                            <li>
                                <a href="#">
                                    <div>
                                        <i class="fa fa-comment fa-fw"></i> New Comment
                                        <span class="pull-right text-muted small">4 minutes ago</span>
                                    </div>
                                </a>
                            </li>
                            <li class="divider"></li>
                            <li>
                                <a href="#">
                                    <div>
                                        <i class="fa fa-twitter fa-fw"></i> 3 New Followers
                                        <span class="pull-right text-muted small">12 minutes ago</span>
                                    </div>
                                </a>
                            </li>
                            <li class="divider"></li>
                            <li>
                                <a href="#">
                                    <div>
                                        <i class="fa fa-envelope fa-fw"></i> Message Sent
                                        <span class="pull-right text-muted small">4 minutes ago</span>
                                    </div>
                                </a>
                            </li>
                            <li class="divider"></li>
                            <li>
                                <a href="#">
                                    <div>
                                        <i class="fa fa-tasks fa-fw"></i> New Task
                                        <span class="pull-right text-muted small">4 minutes ago</span>
                                    </div>
                                </a>
                            </li>
                            <li class="divider"></li>
                            <li>
                                <a href="#">
                                    <div>
                                        <i class="fa fa-upload fa-fw"></i> Server Rebooted
                                        <span class="pull-right text-muted small">4 minutes ago</span>
                                    </div>
                                </a>
                            </li>
                            <li class="divider"></li>
                            <li>
                                <a class="text-center" href="#">
                                    <strong>See All Alerts</strong>
                                    <i class="fa fa-angle-right"></i>
                                </a>
                            </li>
                        </ul>
                        <!-- /.dropdown-alerts -->
                  <!--   </li>
                    <!-- /.dropdown -->
                    <li class="dropdown">
                        <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                            <i class="fa fa-user fa-fw"></i>
                            @if(Auth::check())
                                {{ $userInformation->getName() }} ({{$userInformation->getGroup()->getName()}})
                            @endif
                            <i class="fa fa-caret-down"></i>
                        </a>
                        <ul class="dropdown-menu dropdown-user">
                            <li><a href="#"><i class="fa fa-user fa-fw"></i> My Task</a>
                            </li>
                            <li><a href="#"><i class="fa fa-gear fa-fw"></i> My Issue</a>
                            </li>
                            <li class="divider"></li>
                            <li><a href="{{ url('logout')}}"><i class="fa fa-sign-out fa-fw"></i> Logout</a>
                            </li>
                        </ul>
                        <!-- /.dropdown-user -->
                    </li>
                    <!-- /.dropdown -->
                </ul>
                <!-- /.navbar-top-links -->
                
                <div class="navbar-default sidebar" role="navigation">
                    <div class="sidebar-nav navbar-collapse">
                        <ul class="nav" id="side-menu">
                            <li>
                                <a href="{{ url('home')}}"><i class="fa fa-dashboard fa-fw"></i> Dashboard</a>
                            </li>
                            @if($mDictPrivilegeInfo!=NULL)
                                @foreach ($mDictPrivilegeInfo['module'] as $module)
                                <li>
                                    <a href="#">
                                        <i class="fa fa-{{$module->getIcon()}} fa-fw"></i> {{$module->getName()}}<span class="fa arrow"></span>
                                    </a>
                                    <ul class="nav nav-second-level">   
                                    @foreach ($mDictPrivilegeInfo[$module->getName()] as $function)
                                        <li>
                                            <a href="{{url($function->getUrl())}}">
                                                <i class="fa fa-{{$function->getIcon()}} fa-fw"></i> {{$function->getName()}}
                                            </a>
                                        </li>
                                    @endforeach
                                    </ul>
                                <!-- /.nav-second-level -->
                                </li>
                                @endforeach
                            @endif
                        </ul>
                    </div>
                    <!-- /.sidebar-collapse -->
                    <!--<div id='copyright'>
                            <p class='small'>Powered By Laravel<br/>Design By StartBootstrap</p>
                    </div>-->
                </div>
                <!-- /.navbar-static-side -->
            </nav>
            <!-- Page Content -->
            <div id="page-wrapper">
                @yield('content')
            </div>
            <!-- /#page-wrapper -->
        </div>
        <!-- /#wrapper -->
	</body>
</html>